-
Notifications
You must be signed in to change notification settings - Fork 88
feat(node): configure ntx script cache size via clap #1454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(node): configure ntx script cache size via clap #1454
Conversation
crates/ntx-builder/src/lib.rs
Outdated
| const COMPONENT: &str = "miden-ntx-builder"; | ||
|
|
||
| pub const DEFAULT_SCRIPT_CACHE_SIZE: NonZeroUsize = | ||
| NetworkTransactionBuilder::DEFAULT_SCRIPT_CACHE_SIZE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this do we?
crates/ntx-builder/src/builder.rs
Outdated
| /// Each cached script contains the deserialized `NoteScript` object, so the actual memory usage | ||
| /// depends on the complexity of the scripts being cached. | ||
| const DEFAULT_SCRIPT_CACHE_SIZE: NonZeroUsize = NonZeroUsize::new(1000).unwrap(); | ||
| pub const DEFAULT_SCRIPT_CACHE_SIZE: NonZeroUsize = NonZeroUsize::new(1000).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be pub does it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be pub does it?
Made changes
sergerad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM TY
reopen #1340
Fixes #1335